// function Car(color) {
//     this.name = 'su7-Ultra'
//     this.height = 1.68
//     this.weight = 1300
//     this.age = 1
//     this.color = color
// }


// Car.prototype.name = 'su7-Ultra'
// Car.prototype.height = 1.68
// Car.prototype.weight = 1300
// function Car(color) {
//     this.color = color
// }

// var car1 = new Car('red')
// console.log(car1);
// console.log(car1.name);


// function Class(calss_number) {
//     this.class_number = calss_number;
// }

// class_one = new Class('一年级一班');
// class_two = new Class('一年级二班');

function School() {
    this.name = 'xx小学';
}

function Student(name) {
    this.name = name;
}

// Student.prototype.class_number = '一年级一班';
var s1 = new Student('zs');
var s2 = new Student('ls');
var s3 = new Student('ww');
// console.log(Student.constructor.prototype.__proto__);
// console.log(Object.prototype);
console.log({}.__proto__);
// console.log(Object.constructor);
// console.log(Function.__proto__);
// console.log(Function.prototype);
// console.log(Function.__proto__.__proto__);
// console.log(s1.constructor);




// console.log(s1, s1.class_number);
// console.log(s2, s2.class_number);
// console.log(s3, s3.class_number);
// console.log(Student.prototype.constructor === Student);
// console.log(s1.__proto__.prototype);
// console.log(s1.__proto__.__proto__);





// 函数天生拥有一个属性，叫做prototype，这个属性指向的是一个对象，